package cn.itsource.exam.controller;

import cn.itsource.exam.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by su on 2020/7/24.
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private LoginService loginService;

    /**
     * 重置密码
     * @param
     * @return
     */
    @RequestMapping(value="resetpwd")
    public String resetPwd(@RequestBody Long[] ids, HttpServletRequest request){
        //return loginService.resetPwd(id, request);
        return loginService.resetPwd(ids);
    }

}
